package com.itheima.provider;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: spring-cloud-parent
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-05 14:02
 **/
@RestController
public class ProducerController {
    @Autowired
    private MessageProducer producer;
    
    @RequestMapping("/send")
    public String sendMsg() {
        producer.send();
        return "success";
    }
}
